package m.olive.data.model;

import java.util.ArrayList;
import java.util.List;

import m.framework.utils.CollectionUtil;
import m.olive.data.model.DsParamDto.ParamType;

public class DatasourceInfo extends DatasourceInfoDto {
	private List<DsParam> dsParams;

	public List<DsParam> getDsParams() {
		return dsParams;
	}

	public void setDsParams(List<DsParam> dsParams) {
		this.dsParams = dsParams;
	}

	public List<DsParam> getOutParams() {
		return CollectionUtil.pickUp(dsParams, "paramType", ParamType.出参);
	}

	public List<DsParam> getInParams() {
		return CollectionUtil.pickUp(dsParams, "paramType", ParamType.入参);
	}

}
